package com.zq.create.factory_method;

public class Client {
    public static void main(String[] args) {

        IPhone.IPhoneFactory iPhoneFactory = new IPhone.IPhoneFactory();
        IPhone iPhone = iPhoneFactory.newInstance();

        MiPhone.MiPhoneFactory miPhoneFactory = new MiPhone.MiPhoneFactory();
        MiPhone miPhone = miPhoneFactory.newInstance();

        iPhone.call();
        miPhone.call();
    }
}
